<div class="pageContent">

	<form method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/edit','','')}/callbackType/closeCurrent/navTabId/authList" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="id" value="{$rule['id']}">
		<div class="pageFormContent" layoutH="58">

			<div class="unit">
				<label>上级规则：</label>
				<select name="pid">
				    <option value="0" selected >顶级规则</option>
					<volist name="auth" id="list">
						<if condition="$list.level lt 3">
							<option value="{$list.id}"<if condition="$list['id'] eq $ppid">selected</if>>{$list.title}</option>
						</if>
					</volist>
				</select>
			</div>


			<div class="unit">
				<label>规则标识：</label>
				<input type="text" class="required"  name="name" value="{$rule['name']}">
			</div>
			
			<div class="unit">
				<label>规则名称：</label>
				<input type="text" class="required" name="title" value="{$rule['title']}">
			</div>
			<div class="unit">
				<label>可见状态</label>
				<SELECT name="type">
					<option value="1" <if condition="$rule['type']">selected</if>>显示</option>
					<option value="0" <if condition="$rule['type'] eq 0">selected</if>>隐藏</option>
				</SELECT>
			</div>
			<div class="unit">
				<label>状态：</label>
				<SELECT name="status">
					<option value="1"  <if condition="$rule['status']">selected</if>>启用</option>
					<option value="0" <if condition="$rule['status'] eq 0">selected</if>>禁用</option>
				</SELECT>
			</div>
			<div class="unit">
				<label>规则表达式：</label>
				<textarea name="condition"  rows="2" cols="40">{$rule['condition']}</textarea>
			</div>
			<div class="unit">
				<label>排序：</label>
				<input type="text" class="required number"  name="sort" id="sort" value="{$rule['sort']}" size="5" />
			</div>
		</div>
		
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">修改</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>

</div>

